****************************************************************************************************
Replication Files for: Descriptive Representation and Public Support for Supreme Court Nominees

Jaclyn Kaslovsky (jkaslovsky@g.harvard.edu), Jon C. Rogowski (rogowski@fas.harvard.edu) and Andrew R. Stone (arstone@g.harvard.edu)
Harvard University 

This version: August 2019, v. 1.0

****************************************************************************************************

This repository contains the data and code necessary to replicate the analyses in the manuscript and online appendix. 

The analysis was conducted in R (version 3.4.2) running on macOS Mojave (version 10.14.5). 

****************************************************************************************************

The following files are necessary to replicate the analyses in the article. 

*** Table 1 ***
*** Figures 1, 2 and 3 ***

article_data.tab (download as .RData file)
article-replication-file.R


The following files are necessary to replicate the analyses in the online appendix. 

*** Figures A1-A5 ***
*** Table A1 ***
*** Table B1 and B3 ***
*** Tables C1, C2 and C3 ***

appendix_data.tab (download as .RData file)
appendix-replication-file.R

*** Figure A6 ***

longitudinal_data.RData (download as .RData file)
appendix-replication-file.R


The following R packages are necessary to replicate the analyses in the article and online appendix. 

cjoint (version 2.0.5), gridExtra (version 2.3), dplyr (version 0.7.4), car (version 2.1-5).


****************************************************************************************************

The following variables are used in the analyses found in the paper and appendix.

politicized: Indicator of whether respondent received elite rhetoric statements or not.
treat_age: Indicator of which age attribute the nominee profile contained.
treat_gender: Indicator of which gender attribute the nominee profile contained.
treat_race: Indicator of which race attribute the nominee profile contained.
treat_lawS: Indicator of which law school attended attribute the nominee profile contained.
treat_pAbortion: Indicator of which abortion view attribute the nominee profile contained.
treat_currentP: Indicator of which current position attribute the nominee profile contained.
pid3a: Respondent partisan identification.
caseid: Respondent ID. 
weight: Post-stratification survey weights.
trust: Evaluation of trust in nominee's impartiality (5pt scale).
trust2: Evaluation of trust in nominee's impartiality (binary).
support: Evaluation of nominee support (5pt scale).
support2: Evaluation of nominee support (binary).
qualified: Evaluation of nominee qualifications (5pt scale).
qualified2: Evaluation of nominee qualifications (binary).
race_nominee: Race of the nominee. 
gender_nominee: Gender of the nominee. 
same.race: Indicator of whether the respondent is of the same race as the nominee.
same.gender: Indicator of whether the respondent is of the same gender as the nominee.
race_respondent: Race of the respondent.
gender_respondent: Gender of the respondent. 
Q10: Judicial knowledge question about whether Supreme Court justices are elected or appointed.
Q11: Judicial knowledge question about whether Supreme Court justices serve a life or set term.
Q12: Judicial knowledge question about which branch has the last say over the meaning of the Constitution.
Q13: Judicial knowledge question about who the Chief Justice of the Supreme Court is. 
Q14: Judicial knowledge question about the most recent justice to join the Supreme Court. 
educ: Education level of the respondent. 
faminc2: Family income level of the respondent. 
ideo5: Five-point self-reported ideology of the respondent.